<?php 
	
	$line = '<div class="paning-line">&nbsp;</div>';
	
	$btnStart = '<div class="star-off">&nbsp;</div>';
	if($this->current != $this->first){
		$lnkStart = $this->cmsUrl(array('page'=>$this->first));		
		$btnStart = '<div class="star"><a href="' . $lnkStart . '">&nbsp;</a></div> ';
	}
	
	
	$btnPrev = '<div class="previous-off">&nbsp;</div>';
	if(isset($this->previous)){
		$lnkPrev = $this->cmsUrl(array('page'=>$this->previous));		
		$btnPrev = '<div class="previous"><a href="' . $lnkPrev . '">&nbsp;</a></div>';
	}
	
	$leftPaning .= $btnStart . $btnPrev . $line;
	
	$leftPaning .= '<div class="paning-text">' . $this->translate('Page') . '</div>
		              <div class="paning-input">'
					 . $this->formText('page',$this->current,array('class'=>'width-25 center'))
					 . '</div>
		              <div class="paning-text">' . $this->translate('in') . ' ' . $this->last . '</div>';
	
	$btnNext = '<div class="next-off">&nbsp;</div>';
	if(isset($this->next)){
		$lnkNext = $this->cmsUrl(array('page'=>$this->next));		
		$btnNext = ' <div class="next"><a href="' . $lnkNext . '">&nbsp;</a></div> ';
	}
	
	$btnEnd = '<div class="end-off">&nbsp;</div>';
	if($this->current != $this->last){
		$lnkEnd = $this->cmsUrl(array('page'=>$this->last));		
		$btnEnd = '<div class="end"><a href="' . $lnkEnd . '">&nbsp;</a></div> ';
	}
	
	$leftPaning .= $line . $btnNext . $btnEnd;
	
	$from = $this->firstItemNumber; //$this->currentItemCount * ($this->current - 1) + 1;
	$to = $this->lastItemNumber; 	//$this->currentItemCount * ($this->current);
	$rightPaning = $this->translate('Display') . ' ' . $from . ' -  ' 
				   . $to . ' ' . $this->translate('of') . ' ' 
				   . $this->totalItemCount . ' ' . $this->translate('data');

?>
<div id="paning">
  	<div class="paning-left">
		<?php echo $leftPaning;?>
	   	<div class="clr"></div>
	</div>
    <div class="paning-right"><?php echo $rightPaning;?></div>
    <div class="clr"></div>
</div>
